package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.dao.PaymentDao;
import com.atguigu.springcloud.entity.Payment;
import com.atguigu.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Tu
 * @date 2022/10/30 20:31
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public Payment selPaymentById(Long id) {
        return paymentDao.selPaymentById(id);
    }

    @Override
    public int insertPayment(Payment payment) {
        return paymentDao.insertPayment(payment);
    }

}
